﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sql;
using System.Data;
using System.Data.SqlClient;

public partial class PrimOran2 : System.Web.UI.Page
{
    private string VT_Prim = "Prim";
    private string VT_MikroDB = "MikroDB";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack && !IsCallback)
        {
            DcSql connMikroDB = new DcSql();
            string HataMesaji = connMikroDB.DBBaglan(VT_MikroDB);

            string selectsql = "select sto_kod,sto_isim from STOKLAR where sto_isim <> '' order by sto_isim ";
            DataSet dsMikro = new DataSet();
            SqlDataAdapter daMikro = new SqlDataAdapter(selectsql, connMikroDB.GetConn());

            daMikro.Fill(dsMikro, "STOKLAR");

            cmbMikroStok.ValueField = "sto_kod";
            cmbMikroStok.ValueType = typeof(String);
            cmbMikroStok.TextField = "sto_isim";
            cmbMikroStok.DataSource = dsMikro.Tables[0];
            cmbMikroStok.DataBind();
        }
    }

    protected void btnKaydet_Click(object sender, EventArgs e)
    {

    }
}